//
//  TollgateScene.hpp
//  LitterRunner
//
//  Created by 李阳 on 15/11/20.
//
//

#ifndef TollgateScene_hpp
#define TollgateScene_hpp

#include <stdio.h>
#include "cocos2d.h"
#include "cocos-ext.h"
#include "Player.hpp"
class TollgateScene:public cocos2d::CCLayer{
public:
    static cocos2d::CCScene *scene();
    virtual bool init();
    CREATE_FUNC(TollgateScene);
    
    virtual void update(float delta);
    
    void jumpEvent(CCObject *pSender,cocos2d::extension::CCControlEvent *event);
private:
    void initBG();
private:
    CCSprite *m_bgSprite1;
    CCSprite *m_bgSprite2;
    Player *m_player;
};

#endif /* TollgateScene_hpp */
